home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / MacTech® Magazine / Volume 01 - 1984 & 1985 / 01.12 Nov 85.sit / 01.12 Nov 85 / fortran / shell stuff 1-12 / Shell.for < prev    next >
MacBinary  |  1985-10-16  |  9.4 KB  |  [TEXT/EDIT]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Tue Oct 15 20:17:59 1985, modified Tue Oct 15 20:17:59 1985, creator Macintosh Edit, type ASCII, 8872 bytes "Shell.for" , at 0x2328 490 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[EDIT]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 09 53 68 65 6c 6c 2e | 66 6f 72 00 00 00 00 00 |..Shell.|for.....|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 45 44 49 | 54 01 00 00 00 00 00 00 |.TEXTEDI|T.......|
|00000050| 00 00 00 00 00 22 a8 00 | 00 01 ea 99 d8 af 37 99 |....."..|......7.|
|00000060| d8 af 37 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |..7.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 3b cb 00 00 |........|....;...|
|00000080| 2a 0d 2a 20 20 54 68 65 | 20 66 6f 6c 6c 6f 77 69 |*.* The| followi|
|00000090| 6e 67 20 70 72 6f 67 72 | 61 6d 20 64 65 6d 6f 6e |ng progr|am demon|
|000000a0| 73 74 72 61 74 65 73 20 | 74 68 65 20 4d 61 63 46 |strates |the MacF|
|000000b0| 6f 72 74 72 61 6e 20 69 | 6e 74 65 72 66 61 63 65 |ortran i|nterface|
|000000c0| 20 74 6f 20 0d 2a 20 20 | 74 68 65 20 4d 61 63 69 | to .* |the Maci|
|000000d0| 6e 74 6f 73 68 20 74 6f | 6f 6c 20 62 6f 78 20 62 |ntosh to|ol box b|
|000000e0| 79 20 63 72 65 61 74 69 | 6e 67 20 61 6e 20 61 70 |y creati|ng an ap|
|000000f0| 70 6c 69 63 61 74 69 6f | 6e 20 27 73 68 65 6c 6c |plicatio|n 'shell|
|00000100| 27 2e 20 49 74 20 75 73 | 65 73 20 0d 2a 20 20 51 |'. It us|es .* Q|
|00000110| 75 69 63 6b 64 72 61 77 | 2c 20 74 68 65 20 4d 65 |uickdraw|, the Me|
|00000120| 6e 75 20 4d 61 6e 61 67 | 65 72 2c 20 74 68 65 20 |nu Manag|er, the |
|00000130| 57 69 6e 64 6f 77 20 4d | 61 6e 61 67 65 72 2c 20 |Window M|anager, |
|00000140| 61 6e 64 20 74 68 65 20 | 45 76 65 6e 74 20 4d 61 |and the |Event Ma|
|00000150| 6e 61 67 65 72 2e 0d 2a | 20 20 54 68 65 20 70 72 |nager..*| The pr|
|00000160| 6f 67 72 61 6d 20 69 73 | 20 6f 72 69 67 69 6e 61 |ogram is| origina|
|00000170| 6c 6c 79 20 62 61 73 65 | 64 20 6f 6e 20 74 68 65 |lly base|d on the|
|00000180| 20 64 65 6d 6f 20 70 72 | 6f 67 72 61 6d 20 70 72 | demo pr|ogram pr|
|00000190| 6f 76 69 64 65 64 20 62 | 79 20 41 62 73 6f 66 74 |ovided b|y Absoft|
|000001a0| 0d 2a 20 20 77 69 74 68 | 20 74 68 65 20 4d 61 63 |.* with| the Mac|
|000001b0| 46 6f 72 74 72 61 6e 20 | 70 61 63 6b 61 67 65 2e |Fortran |package.|
|000001c0| 20 20 54 68 69 73 20 70 | 72 6f 67 72 61 6d 20 75 | This p|rogram u|
|000001d0| 73 65 73 20 72 65 73 6f | 75 72 63 65 20 66 69 6c |ses reso|urce fil|
|000001e0| 65 73 20 74 6f 20 6c 6f | 61 64 20 0d 2a 20 20 74 |es to lo|ad .* t|
|000001f0| 68 65 20 6d 65 6e 75 20 | 61 6e 64 20 74 68 65 20 |he menu |and the |
|00000200| 77 69 6e 64 6f 77 2e 0d | 2a 0d 2a 20 20 4d 61 72 |window..|*.* Mar|
|00000210| 6b 20 45 2e 20 4d 63 42 | 72 69 64 65 20 20 20 38 |k E. McB|ride 8|
|00000220| 2f 31 35 2f 38 35 0d 2a | 0d 0d 09 70 72 6f 67 72 |/15/85.*|...progr|
|00000230| 61 6d 20 53 68 65 6c 6c | 0d 09 0d 09 69 6d 70 6c |am Shell|....impl|
|00000240| 69 63 69 74 20 6e 6f 6e | 65 09 09 09 21 20 68 65 |icit non|e...! he|
|00000250| 6c 70 73 20 6b 65 65 70 | 20 75 73 20 6f 75 74 20 |lps keep| us out |
|00000260| 6f 66 20 74 72 6f 75 62 | 6c 65 0d 09 0d 20 0d 09 |of troub|le... ..|
|00000270| 69 6e 63 6c 75 64 65 20 | 64 65 73 6b 2e 69 6e 63 |include |desk.inc|
|00000280| 0d 09 69 6e 63 6c 75 64 | 65 20 64 69 61 6c 6f 67 |..includ|e dialog|
|00000290| 2e 69 6e 63 0d 09 69 6e | 63 6c 75 64 65 20 65 76 |.inc..in|clude ev|
|000002a0| 65 6e 74 2e 69 6e 63 0d | 09 69 6e 63 6c 75 64 65 |ent.inc.|.include|
|000002b0| 20 6d 65 6e 75 2e 69 6e | 63 0d 09 69 6e 63 6c 75 | menu.in|c..inclu|
|000002c0| 64 65 20 71 75 69 63 6b | 64 72 61 77 2e 69 6e 63 |de quick|draw.inc|
|000002d0| 0d 09 69 6e 63 6c 75 64 | 65 20 6d 69 73 63 2e 69 |..includ|e misc.i|
|000002e0| 6e 63 0d 09 69 6e 63 6c | 75 64 65 20 74 65 78 74 |nc..incl|ude text|
|000002f0| 65 64 69 74 2e 69 6e 63 | 0d 09 69 6e 63 6c 75 64 |edit.inc|..includ|
|00000300| 65 20 77 69 6e 64 6f 77 | 2e 69 6e 63 0d 2a 0d 2a |e window|.inc.*.*|
|00000310| 20 65 76 65 6e 74 20 73 | 74 72 75 63 75 74 75 72 | event s|trucutur|
|00000320| 65 73 20 64 65 66 69 6e | 65 64 20 69 6e 20 65 76 |es defin|ed in ev|
|00000330| 65 6e 74 2e 69 6e 63 0d | 2a 0d 0d 09 0d 2a 0d 2a |ent.inc.|*....*.*|
|00000340| 20 6d 65 6e 75 20 64 65 | 66 69 6e 69 74 69 6f 6e | menu de|finition|
|00000350| 73 0d 2a 0d 0d 09 69 6e | 74 65 67 65 72 2a 34 20 |s.*...in|teger*4 |
|00000360| 6d 65 6e 75 68 61 6e 64 | 6c 65 09 09 21 20 70 6f |menuhand|le..! po|
|00000370| 69 6e 74 65 72 20 74 6f | 20 6d 65 6e 75 0d 09 09 |inter to| menu...|
|00000380| 0d 09 0d 2a 0d 2a 20 77 | 69 6e 64 6f 77 20 73 74 |...*.* w|indow st|
|00000390| 72 75 63 75 74 75 72 65 | 73 0d 2a 0d 09 69 6e 74 |rucuture|s.*..int|
|000003a0| 65 67 65 72 2a 34 20 64 | 5f 77 69 6e 64 6f 77 09 |eger*4 d|_window.|
|000003b0| 09 21 20 70 6f 69 6e 74 | 65 72 20 74 6f 20 74 68 |.! point|er to th|
|000003c0| 65 20 53 68 65 6c 6c 20 | 77 69 6e 64 6f 77 0d 09 |e Shell |window..|
|000003d0| 69 6e 74 65 67 65 72 2a | 31 20 64 5f 72 65 63 6f |integer*|1 d_reco|
|000003e0| 72 64 28 31 35 34 29 20 | 09 21 20 73 68 65 6c 6c |rd(154) |.! shell|
|000003f0| 20 77 69 6e 64 6f 77 20 | 72 65 63 6f 72 64 0d 2a | window |record.*|
|00000400| 0d 2a 20 67 65 6e 65 72 | 61 6c 20 76 61 72 69 61 |.* gener|al varia|
|00000410| 62 6c 65 73 0d 2a 0d 09 | 69 6e 74 65 67 65 72 2a |bles.*..|integer*|
|00000420| 34 20 74 6f 6f 6c 62 78 | 09 20 20 20 20 20 20 20 |4 toolbx|. |
|00000430| 20 21 20 74 68 65 20 74 | 6f 6f 6c 20 62 6f 78 20 | ! the t|ool box |
|00000440| 69 6e 74 65 72 66 61 63 | 65 0d 09 69 6e 74 65 67 |interfac|e..integ|
|00000450| 65 72 2a 34 20 77 69 6e | 64 6f 77 09 09 21 20 67 |er*4 win|dow..! g|
|00000460| 65 6e 65 72 61 6c 20 70 | 75 72 70 6f 73 65 20 70 |eneral p|urpose p|
|00000470| 6f 69 6e 74 65 72 0d 09 | 69 6e 74 65 67 65 72 2a |ointer..|integer*|
|00000480| 34 20 73 69 7a 65 2c 77 | 2c 68 09 09 21 20 66 6f |4 size,w|,h..! fo|
|00000490| 72 20 67 72 6f 77 69 6e | 67 20 64 6f 63 75 6d 65 |r growin|g docume|
|000004a0| 6e 74 73 0d 09 69 6e 74 | 65 67 65 72 2a 32 20 72 |nts..int|eger*2 r|
|000004b0| 65 63 74 28 34 29 20 20 | 20 20 20 20 20 09 21 20 |ect(4) | .! |
|000004c0| 72 65 63 74 61 6e 67 6c | 65 20 63 6f 6f 72 64 69 |rectangl|e coordi|
|000004d0| 6e 61 74 65 73 0d 09 69 | 6e 74 65 67 65 72 20 6d |nates..i|nteger m|
|000004e0| 6f 75 73 65 6c 6f 63 09 | 09 21 20 6d 6f 75 73 65 |ouseloc.|.! mouse|
|000004f0| 20 6c 6f 63 61 74 69 6f | 6e 20 66 72 6f 6d 20 46 | locatio|n from F|
|00000500| 49 4e 44 57 49 4e 44 4f | 57 0d 09 69 6e 74 65 67 |INDWINDO|W..integ|
|00000510| 65 72 2a 34 20 68 74 65 | 2c 74 72 65 63 74 28 34 |er*4 hte|,trect(4|
|00000520| 29 09 09 21 20 74 65 78 | 74 20 65 64 69 74 20 68 |)..! tex|t edit h|
|00000530| 61 6e 64 6c 65 20 61 6e | 64 20 72 65 63 74 61 6e |andle an|d rectan|
|00000540| 67 6c 65 0d 09 69 6e 74 | 65 67 65 72 2a 32 20 6d |gle..int|eger*2 m|
|00000550| 6f 75 73 65 28 32 29 09 | 09 21 20 77 68 65 72 65 |ouse(2).|.! where|
|00000560| 28 29 20 66 69 65 6c 64 | 20 6f 66 20 65 76 65 6e |() field| of even|
|00000570| 74 72 65 63 6f 72 64 28 | 29 0d 2a 0d 2a 20 20 46 |trecord(|).*.* F|
|00000580| 6c 75 73 68 20 74 68 65 | 20 65 76 65 6e 74 20 6d |lush the| event m|
|00000590| 61 6e 61 67 65 72 20 62 | 65 66 6f 72 65 20 63 61 |anager b|efore ca|
|000005a0| 6c 6c 69 6e 67 0d 2a 0d | 09 65 76 65 6e 74 6d 61 |lling.*.|.eventma|
|000005b0| 73 6b 20 3d 20 2d 31 0d | 2a 0d 2a 20 20 43 6c 6f |sk = -1.|*.* Clo|
|000005c0| 73 65 20 4d 61 63 46 6f | 72 74 72 61 6e 20 49 2f |se MacFo|rtran I/|
|000005d0| 4f 20 77 69 6e 64 6f 77 | 20 0d 2a 0d 09 77 69 6e |O window| .*..win|
|000005e0| 64 6f 77 3d 74 6f 6f 6c | 62 78 28 46 52 4f 4e 54 |dow=tool|bx(FRONT|
|000005f0| 57 49 4e 44 4f 57 29 0d | 09 63 61 6c 6c 20 74 6f |WINDOW).|.call to|
|00000600| 6f 6c 62 78 28 43 4c 4f | 53 45 57 49 4e 44 4f 57 |olbx(CLO|SEWINDOW|
|00000610| 2c 77 69 6e 64 6f 77 29 | 0d 2a 0d 2a 20 20 43 61 |,window)|.*.* Ca|
|00000620| 6c 6c 20 54 65 78 74 20 | 45 64 69 74 20 69 6e 69 |ll Text |Edit ini|
|00000630| 74 69 6c 69 7a 61 74 69 | 6f 6e 2e 20 20 54 68 69 |tilizati|on. Thi|
|00000640| 73 20 69 73 20 74 68 65 | 20 6f 6e 6c 79 20 70 61 |s is the| only pa|
|00000650| 63 6b 61 67 65 20 79 6f | 75 0d 2a 20 20 6e 65 65 |ckage yo|u.* nee|
|00000660| 64 20 74 6f 20 69 6e 69 | 74 69 6c 69 7a 65 2e 20 |d to ini|tilize. |
|00000670| 20 4d 61 63 46 6f 72 74 | 72 61 6e 20 68 61 6e 64 | MacFort|ran hand|
|00000680| 6c 65 73 20 61 6c 6c 20 | 74 68 65 20 6f 74 68 65 |les all |the othe|
|00000690| 72 73 2e 0d 2a 0d 09 63 | 61 6c 6c 20 74 6f 6f 6c |rs..*..c|all tool|
|000006a0| 62 78 28 54 45 49 4e 49 | 54 29 0d 2a 0d 2a 20 20 |bx(TEINI|T).*.* |
|000006b0| 42 75 69 6c 64 20 74 68 | 65 20 6d 65 6e 75 20 66 |Build th|e menu f|
|000006c0| 72 6f 6d 20 74 68 65 20 | 72 65 73 6f 75 72 63 65 |rom the |resource|
|000006d0| 20 66 69 6c 65 20 0d 2a | 0d 09 6d 65 6e 75 68 61 | file .*|..menuha|
|000006e0| 6e 64 6c 65 3d 74 6f 6f | 6c 62 78 28 47 45 54 4d |ndle=too|lbx(GETM|
|000006f0| 45 4e 55 2c 32 39 29 09 | 09 21 20 67 65 74 20 31 |ENU,29).|.! get 1|
|00000700| 73 74 20 6d 65 6e 75 0d | 09 63 61 6c 6c 20 74 6f |st menu.|.call to|
|00000710| 6f 6c 62 78 28 49 4e 53 | 45 52 54 4d 45 4e 55 2c |olbx(INS|ERTMENU,|
|00000720| 6d 65 6e 75 68 61 6e 64 | 6c 65 2c 30 29 09 21 20 |menuhand|le,0).! |
|00000730| 69 6e 73 65 72 74 20 61 | 74 20 65 6e 64 20 6f 66 |insert a|t end of|
|00000740| 20 6c 69 73 74 09 09 0d | 09 63 61 6c 6c 20 74 6f | list...|.call to|
|00000750| 6f 6c 62 78 28 41 44 44 | 52 45 53 4d 45 4e 55 2c |olbx(ADD|RESMENU,|
|00000760| 6d 65 6e 75 68 61 6e 64 | 6c 65 2c 27 44 52 56 52 |menuhand|le,'DRVR|
|00000770| 27 29 20 21 20 61 64 64 | 20 64 65 73 6b 20 61 63 |') ! add| desk ac|
|00000780| 63 65 73 73 6f 72 69 65 | 73 0d 09 6d 65 6e 75 68 |cessorie|s..menuh|
|00000790| 61 6e 64 6c 65 3d 74 6f | 6f 6c 62 78 28 47 45 54 |andle=to|olbx(GET|
|000007a0| 4d 45 4e 55 2c 33 30 29 | 09 09 21 20 67 65 74 20 |MENU,30)|..! get |
|000007b0| 32 6e 64 20 6d 65 6e 75 | 0d 09 63 61 6c 6c 20 74 |2nd menu|..call t|
|000007c0| 6f 6f 6c 62 78 28 49 4e | 53 45 52 54 4d 45 4e 55 |oolbx(IN|SERTMENU|
|000007d0| 2c 6d 65 6e 75 68 61 6e | 64 6c 65 2c 30 29 09 21 |,menuhan|dle,0).!|
|000007e0| 20 69 6e 73 65 72 74 20 | 61 74 20 65 6e 64 20 6f | insert |at end o|
|000007f0| 66 20 6c 69 73 74 0d 09 | 6d 65 6e 75 68 61 6e 64 |f list..|menuhand|
|00000800| 6c 65 3d 74 6f 6f 6c 62 | 78 28 47 45 54 4d 45 4e |le=toolb|x(GETMEN|
|00000810| 55 2c 33 31 29 09 09 21 | 20 67 65 74 20 33 72 64 |U,31)..!| get 3rd|
|00000820| 20 6d 65 6e 75 0d 09 63 | 61 6c 6c 20 74 6f 6f 6c | menu..c|all tool|
|00000830| 62 78 28 49 4e 53 45 52 | 54 4d 45 4e 55 2c 6d 65 |bx(INSER|TMENU,me|
|00000840| 6e 75 68 61 6e 64 6c 65 | 2c 30 29 09 21 20 69 6e |nuhandle|,0).! in|
|00000850| 73 65 72 74 20 61 74 20 | 65 6e 64 20 6f 66 20 6c |sert at |end of l|
|00000860| 69 73 74 0d 09 6d 65 6e | 75 68 61 6e 64 6c 65 3d |ist..men|uhandle=|
|00000870| 74 6f 6f 6c 62 78 28 47 | 45 54 4d 45 4e 55 2c 33 |toolbx(G|ETMENU,3|
|00000880| 32 29 09 09 21 20 67 65 | 74 20 34 72 64 20 6d 65 |2)..! ge|t 4rd me|
|00000890| 6e 75 0d 09 63 61 6c 6c | 20 74 6f 6f 6c 62 78 28 |nu..call| toolbx(|
|000008a0| 49 4e 53 45 52 54 4d 45 | 4e 55 2c 6d 65 6e 75 68 |INSERTME|NU,menuh|
|000008b0| 61 6e 64 6c 65 2c 30 29 | 09 21 20 69 6e 73 65 72 |andle,0)|.! inser|
|000008c0| 74 20 61 74 20 65 6e 64 | 20 6f 66 20 6c 69 73 74 |t at end| of list|
|000008d0| 0d 09 63 61 6c 6c 20 74 | 6f 6f 6c 62 78 28 44 52 |..call t|oolbx(DR|
|000008e0| 41 57 4d 45 4e 55 42 41 | 52 29 09 09 21 20 64 69 |AWMENUBA|R)..! di|
|000008f0| 73 70 6c 61 79 20 6d 65 | 6e 75 20 62 61 72 0d 2a |splay me|nu bar.*|
|00000900| 0d 2a 20 20 43 72 65 61 | 74 65 20 74 68 65 20 77 |.* Crea|te the w|
|00000910| 69 6e 64 6f 77 2e 20 74 | 68 65 20 53 45 54 50 4f |indow. t|he SETPO|
|00000920| 52 54 20 63 61 6c 6c 20 | 61 6c 6c 6f 77 73 20 46 |RT call |allows F|
|00000930| 4f 52 54 52 41 4e 20 49 | 2f 4f 20 74 6f 20 74 61 |ORTRAN I|/O to ta|
|00000940| 6b 65 20 70 6c 61 63 65 | 3a 0d 2a 20 20 54 68 65 |ke place|:.* The|
|00000950| 20 77 69 6e 64 6f 77 20 | 69 73 20 63 72 65 61 74 | window |is creat|
|00000960| 65 64 20 75 73 69 6e 67 | 20 61 20 72 65 73 6f 75 |ed using| a resou|
|00000970| 72 63 65 20 61 6e 64 20 | 74 68 65 20 47 45 54 4e |rce and |the GETN|
|00000980| 45 57 57 49 4e 44 4f 57 | 20 74 6f 6f 6c 62 6f 78 |EWWINDOW| toolbox|
|00000990| 20 63 61 6c 6c 2e 0d 2a | 0d 09 64 5f 77 69 6e 64 | call..*|..d_wind|
|000009a0| 6f 77 20 3d 20 74 6f 6f | 6c 62 78 28 50 54 52 2c |ow = too|lbx(PTR,|
|000009b0| 64 5f 72 65 63 6f 72 64 | 29 0d 09 64 5f 77 69 6e |d_record|)..d_win|
|000009c0| 64 6f 77 20 3d 20 74 6f | 6f 6c 62 78 28 47 45 54 |dow = to|olbx(GET|
|000009d0| 4e 45 57 57 49 4e 44 4f | 57 2c 31 2c 64 5f 77 69 |NEWWINDO|W,1,d_wi|
|000009e0| 6e 64 6f 77 2c 2d 31 29 | 0d 09 63 61 6c 6c 20 74 |ndow,-1)|..call t|
|000009f0| 6f 6f 6c 62 78 28 53 45 | 54 50 4f 52 54 2c 64 5f |oolbx(SE|TPORT,d_|
|00000a00| 77 69 6e 64 6f 77 29 0d | 2a 0d 2a 20 20 63 6f 6e |window).|*.* con|
|00000a10| 73 74 72 61 69 6e 74 73 | 20 6f 6e 20 77 69 6e 64 |straints| on wind|
|00000a20| 6f 77 20 64 72 61 67 67 | 69 6e 67 20 0d 2a 0d 09 |ow dragg|ing .*..|
|00000a30| 72 65 63 74 28 31 29 20 | 3d 20 33 30 0d 09 72 65 |rect(1) |= 30..re|
|00000a40| 63 74 28 32 29 20 3d 20 | 31 0d 09 72 65 63 74 28 |ct(2) = |1..rect(|
|00000a50| 33 29 20 3d 20 33 35 30 | 0d 09 72 65 63 74 28 34 |3) = 350|..rect(4|
|00000a60| 29 20 3d 20 35 31 30 0d | 2a 0d 2a 20 20 62 75 69 |) = 510.|*.* bui|
|00000a70| 6c 64 20 61 20 74 65 78 | 74 20 65 64 69 74 20 72 |ld a tex|t edit r|
|00000a80| 65 63 6f 72 64 0d 2a 0d | 09 74 72 65 63 74 28 31 |ecord.*.|.trect(1|
|00000a90| 29 3d 35 30 0d 09 74 72 | 65 63 74 28 32 29 3d 34 |)=50..tr|ect(2)=4|
|00000aa0| 0d 09 74 72 65 63 74 28 | 33 29 3d 32 34 35 0d 09 |..trect(|3)=245..|
|00000ab0| 74 72 65 63 74 28 34 29 | 3d 34 30 35 0d 09 68 74 |trect(4)|=405..ht|
|00000ac0| 65 3d 74 6f 6f 6c 62 78 | 28 54 45 4e 45 57 2c 74 |e=toolbx|(TENEW,t|
|00000ad0| 72 65 63 74 2c 74 72 65 | 63 74 29 0d 2a 0d 2a 20 |rect,tre|ct).*.* |
|00000ae0| 20 6d 61 69 6e 20 65 76 | 65 6e 74 20 70 72 6f 63 | main ev|ent proc|
|00000af0| 65 73 73 69 6e 67 20 6c | 6f 6f 70 0d 2a 0d 09 64 |essing l|oop.*..d|
|00000b00| 6f 0d 2a 0d 2a 20 20 68 | 61 6e 64 6c 65 20 73 79 |o.*.* h|andle sy|
|00000b10| 73 74 65 6d 20 6a 6f 62 | 73 0d 2a 0d 09 63 61 6c |stem job|s.*..cal|
|00000b20| 6c 20 74 6f 6f 6c 62 78 | 28 53 59 53 54 45 4d 54 |l toolbx|(SYSTEMT|
|00000b30| 41 53 4b 29 0d 2a 0d 2a | 20 20 68 61 6e 64 6c 65 |ASK).*.*| handle|
|00000b40| 20 65 76 65 6e 74 73 0d | 2a 0d 09 69 66 20 28 74 | events.|*..if (t|
|00000b50| 6f 6f 6c 62 78 28 47 45 | 54 4e 45 58 54 45 56 45 |oolbx(GE|TNEXTEVE|
|00000b60| 4e 54 2c 65 76 65 6e 74 | 6d 61 73 6b 2c 65 76 65 |NT,event|mask,eve|
|00000b70| 6e 74 72 65 63 6f 72 64 | 29 29 20 74 68 65 6e 0d |ntrecord|)) then.|
|00000b80| 09 20 20 73 65 6c 65 63 | 74 20 63 61 73 65 20 28 |. selec|t case (|
|00000b90| 77 68 61 74 29 0d 09 20 | 20 20 20 63 61 73 65 20 |what).. | case |
|00000ba0| 28 31 29 09 09 09 09 09 | 09 21 20 6d 6f 75 73 65 |(1).....|.! mouse|
|00000bb0| 20 64 6f 77 6e 0d 09 20 | 20 20 20 20 20 6d 6f 75 | down.. | mou|
|00000bc0| 73 65 6c 6f 63 20 3d 20 | 74 6f 6f 6c 62 78 28 46 |seloc = |toolbx(F|
|00000bd0| 49 4e 44 57 49 4e 44 4f | 57 2c 77 68 65 72 65 2c |INDWINDO|W,where,|
|00000be0| 77 69 6e 64 6f 77 29 09 | 21 20 6c 6f 63 61 74 65 |window).|! locate|
|00000bf0| 20 6d 6f 75 73 65 0d 09 | 20 20 20 20 20 20 69 66 | mouse..| if|
|00000c00| 20 28 6d 6f 75 73 65 6c | 6f 63 3d 31 29 20 74 68 | (mousel|oc=1) th|
|00000c10| 65 6e 0d 09 20 20 20 20 | 20 20 20 20 6d 6f 75 73 |en.. | mous|
|00000c20| 65 28 30 29 3d 77 68 65 | 72 65 28 30 29 0d 09 09 |e(0)=whe|re(0)...|
|00000c30| 6d 6f 75 73 65 28 31 29 | 3d 77 68 65 72 65 28 31 |mouse(1)|=where(1|
|00000c40| 29 0d 09 09 63 61 6c 6c | 20 6d 65 6e 75 73 28 6d |)...call| menus(m|
|00000c50| 6f 75 73 65 2c 64 5f 77 | 69 6e 64 6f 77 2c 68 74 |ouse,d_w|indow,ht|
|00000c60| 65 29 09 09 09 21 20 69 | 6e 20 6d 65 6e 75 20 62 |e)...! i|n menu b|
|00000c70| 61 72 0d 09 20 20 20 20 | 20 20 65 6c 73 65 20 69 |ar.. | else i|
|00000c80| 66 20 28 6d 6f 75 73 65 | 6c 6f 63 3d 32 29 20 74 |f (mouse|loc=2) t|
|00000c90| 68 65 6e 0d 09 09 63 61 | 6c 6c 20 74 6f 6f 6c 62 |hen...ca|ll toolb|
|00000ca0| 78 28 53 59 53 54 45 4d | 43 4c 49 43 4b 2c 65 76 |x(SYSTEM|CLICK,ev|
|00000cb0| 65 6e 74 72 65 63 6f 72 | 64 2c 77 69 6e 64 6f 77 |entrecor|d,window|
|00000cc0| 29 09 21 20 69 6e 20 73 | 79 73 74 65 6d 20 77 69 |).! in s|ystem wi|
|00000cd0| 6e 64 6f 77 0d 09 20 20 | 20 20 20 20 65 6c 73 65 |ndow.. | else|
|00000ce0| 20 69 66 20 28 6d 6f 75 | 73 65 6c 6f 63 3d 33 29 | if (mou|seloc=3)|
|00000cf0| 20 74 68 65 6e 0d 09 09 | 63 61 6c 6c 20 74 6f 6f | then...|call too|
|00000d00| 6c 62 78 28 53 45 4c 45 | 43 54 57 49 4e 44 4f 57 |lbx(SELE|CTWINDOW|
|00000d10| 2c 77 69 6e 64 6f 77 29 | 09 09 21 20 69 6e 20 63 |,window)|..! in c|
|00000d20| 6f 6e 74 65 6e 74 20 72 | 65 67 69 6f 6e 0d 09 20 |ontent r|egion.. |
|00000d30| 20 20 20 20 20 65 6c 73 | 65 20 69 66 20 28 6d 6f | els|e if (mo|
|00000d40| 75 73 65 6c 6f 63 3d 34 | 29 20 74 68 65 6e 0d 09 |useloc=4|) then..|
|00000d50| 09 63 61 6c 6c 20 74 6f | 6f 6c 62 78 28 44 52 41 |.call to|olbx(DRA|
|00000d60| 47 57 49 4e 44 4f 57 2c | 77 69 6e 64 6f 77 2c 77 |GWINDOW,|window,w|
|00000d70| 68 65 72 65 2c 72 65 63 | 74 29 09 21 20 69 6e 20 |here,rec|t).! in |
|00000d80| 64 72 61 67 20 72 65 67 | 69 6f 6e 0d 09 20 20 20 |drag reg|ion.. |
|00000d90| 20 20 20 65 6c 73 65 20 | 69 66 20 28 6d 6f 75 73 | else |if (mous|
|00000da0| 65 6c 6f 63 3d 36 29 20 | 74 68 65 6e 0d 09 09 69 |eloc=6) |then...i|
|00000db0| 66 20 28 74 6f 6f 6c 62 | 78 28 54 52 41 43 4b 47 |f (toolb|x(TRACKG|
|00000dc0| 4f 41 57 41 59 2c 77 69 | 6e 64 6f 77 2c 77 68 65 |OAWAY,wi|ndow,whe|
|00000dd0| 72 65 29 29 20 74 68 65 | 6e 09 21 20 69 6e 20 67 |re)) the|n.! in g|
|00000de0| 6f 61 77 61 79 20 72 65 | 67 69 6f 6e 0d 09 09 20 |oaway re|gion... |
|00000df0| 20 63 61 6c 6c 20 74 6f | 6f 6c 62 78 28 48 49 44 | call to|olbx(HID|
|00000e00| 45 57 49 4e 44 4f 57 2c | 77 69 6e 64 6f 77 29 0d |EWINDOW,|window).|
|00000e10| 09 09 20 20 6d 65 6e 75 | 68 61 6e 64 6c 65 3d 74 |.. menu|handle=t|
|00000e20| 6f 6f 6c 62 78 28 47 45 | 54 4d 48 41 4e 44 4c 45 |oolbx(GE|TMHANDLE|
|00000e30| 2c 33 32 29 0d 09 09 20 | 20 63 61 6c 6c 20 74 6f |,32)... | call to|
|00000e40| 6f 6c 62 78 28 45 4e 41 | 42 4c 45 49 54 45 4d 2c |olbx(ENA|BLEITEM,|
|00000e50| 6d 65 6e 75 68 61 6e 64 | 6c 65 2c 31 29 20 20 0d |menuhand|le,1) .|
|00000e60| 09 09 20 20 63 61 6c 6c | 20 74 6f 6f 6c 62 78 28 |.. call| toolbx(|
|00000e70| 44 49 53 41 42 4c 45 49 | 54 45 4d 2c 6d 65 6e 75 |DISABLEI|TEM,menu|
|00000e80| 68 61 6e 64 6c 65 2c 32 | 29 20 0d 09 09 65 6e 64 |handle,2|) ...end|
|00000e90| 20 69 66 0d 09 20 20 20 | 20 20 20 65 6e 64 20 69 | if.. | end i|
|00000ea0| 66 0d 09 20 20 20 20 63 | 61 73 65 20 28 36 29 09 |f.. c|ase (6).|
|00000eb0| 09 09 09 09 09 21 20 75 | 70 64 61 74 65 20 65 76 |.....! u|pdate ev|
|00000ec0| 65 6e 74 0d 09 20 20 20 | 20 20 20 63 61 6c 6c 20 |ent.. | call |
|00000ed0| 55 70 5f 77 69 6e 64 6f | 77 28 64 5f 77 69 6e 64 |Up_windo|w(d_wind|
|00000ee0| 6f 77 29 0d 09 20 20 20 | 20 63 61 73 65 20 28 38 |ow).. | case (8|
|00000ef0| 29 20 09 09 09 09 09 09 | 21 20 61 63 74 69 76 61 |) ......|! activa|
|00000f00| 74 65 20 65 76 65 6e 74 | 0d 09 20 20 20 20 20 20 |te event|.. |
|00000f10| 69 66 20 28 6d 6f 64 28 | 6d 6f 64 69 66 69 65 72 |if (mod(|modifier|
|00000f20| 73 2c 32 29 20 2e 6e 65 | 2e 20 30 29 20 74 68 65 |s,2) .ne|. 0) the|
|00000f30| 6e 0d 09 09 63 61 6c 6c | 20 74 6f 6f 6c 62 78 28 |n...call| toolbx(|
|00000f40| 54 45 41 43 54 49 56 41 | 54 45 2c 68 74 65 29 0d |TEACTIVA|TE,hte).|
|00000f50| 09 09 6d 65 6e 75 68 61 | 6e 64 6c 65 3d 74 6f 6f |..menuha|ndle=too|
|00000f60| 6c 62 78 28 47 45 54 4d | 48 41 4e 44 4c 45 2c 33 |lbx(GETM|HANDLE,3|
|00000f70| 31 29 0d 09 09 63 61 6c | 6c 20 74 6f 6f 6c 62 78 |1)...cal|l toolbx|
|00000f80| 28 44 49 53 41 42 4c 45 | 49 54 45 4d 2c 6d 65 6e |(DISABLE|ITEM,men|
|00000f90| 75 68 61 6e 64 6c 65 2c | 31 29 20 0d 09 09 63 61 |uhandle,|1) ...ca|
|00000fa0| 6c 6c 20 74 6f 6f 6c 62 | 78 28 44 49 53 41 42 4c |ll toolb|x(DISABL|
|00000fb0| 45 49 54 45 4d 2c 6d 65 | 6e 75 68 61 6e 64 6c 65 |EITEM,me|nuhandle|
|00000fc0| 2c 33 29 20 0d 09 09 63 | 61 6c 6c 20 74 6f 6f 6c |,3) ...c|all tool|
|00000fd0| 62 78 28 44 49 53 41 42 | 4c 45 49 54 45 4d 2c 6d |bx(DISAB|LEITEM,m|
|00000fe0| 65 6e 75 68 61 6e 64 6c | 65 2c 34 29 20 0d 09 09 |enuhandl|e,4) ...|
|00000ff0| 63 61 6c 6c 20 74 6f 6f | 6c 62 78 28 44 49 53 41 |call too|lbx(DISA|
|00001000| 42 4c 45 49 54 45 4d 2c | 6d 65 6e 75 68 61 6e 64 |BLEITEM,|menuhand|
|00001010| 6c 65 2c 35 29 20 0d 09 | 09 63 61 6c 6c 20 74 6f |le,5) ..|.call to|
|00001020| 6f 6c 62 78 28 44 49 53 | 41 42 4c 45 49 54 45 4d |olbx(DIS|ABLEITEM|
|00001030| 2c 6d 65 6e 75 68 61 6e | 64 6c 65 2c 36 29 20 0d |,menuhan|dle,6) .|
|00001040| 09 09 63 61 6c 6c 20 74 | 6f 6f 6c 62 78 28 53 45 |..call t|oolbx(SE|
|00001050| 54 50 4f 52 54 2c 64 5f | 77 69 6e 64 6f 77 29 0d |TPORT,d_|window).|
|00001060| 09 20 20 20 20 20 20 65 | 6c 73 65 0d 09 09 63 61 |. e|lse...ca|
|00001070| 6c 6c 20 74 6f 6f 6c 62 | 78 28 54 45 44 45 41 43 |ll toolb|x(TEDEAC|
|00001080| 54 49 56 41 54 45 2c 68 | 74 65 29 0d 09 09 6d 65 |TIVATE,h|te)...me|
|00001090| 6e 75 68 61 6e 64 6c 65 | 3d 74 6f 6f 6c 62 78 28 |nuhandle|=toolbx(|
|000010a0| 47 45 54 4d 48 41 4e 44 | 4c 45 2c 33 31 29 0d 09 |GETMHAND|LE,31)..|
|000010b0| 09 63 61 6c 6c 20 74 6f | 6f 6c 62 78 28 45 4e 41 |.call to|olbx(ENA|
|000010c0| 42 4c 45 49 54 45 4d 2c | 6d 65 6e 75 68 61 6e 64 |BLEITEM,|menuhand|
|000010d0| 6c 65 2c 31 29 20 0d 09 | 09 63 61 6c 6c 20 74 6f |le,1) ..|.call to|
|000010e0| 6f 6c 62 78 28 45 4e 41 | 42 4c 45 49 54 45 4d 2c |olbx(ENA|BLEITEM,|
|000010f0| 6d 65 6e 75 68 61 6e 64 | 6c 65 2c 33 29 20 0d 09 |menuhand|le,3) ..|
|00001100| 09 63 61 6c 6c 20 74 6f | 6f 6c 62 78 28 45 4e 41 |.call to|olbx(ENA|
|00001110| 42 4c 45 49 54 45 4d 2c | 6d 65 6e 75 68 61 6e 64 |BLEITEM,|menuhand|
|00001120| 6c 65 2c 34 29 20 0d 09 | 09 63 61 6c 6c 20 74 6f |le,4) ..|.call to|
|00001130| 6f 6c 62 78 28 45 4e 41 | 42 4c 45 49 54 45 4d 2c |olbx(ENA|BLEITEM,|
|00001140| 6d 65 6e 75 68 61 6e 64 | 6c 65 2c 35 29 20 0d 09 |menuhand|le,5) ..|
|00001150| 09 63 61 6c 6c 20 74 6f | 6f 6c 62 78 28 45 4e 41 |.call to|olbx(ENA|
|00001160| 42 4c 45 49 54 45 4d 2c | 6d 65 6e 75 68 61 6e 64 |BLEITEM,|menuhand|
|00001170| 6c 65 2c 36 29 20 0d 09 | 20 20 20 20 20 20 65 6e |le,6) ..| en|
|00001180| 64 20 69 66 0d 09 20 20 | 20 20 63 61 73 65 20 64 |d if.. | case d|
|00001190| 65 66 61 75 6c 74 09 09 | 09 09 09 21 20 69 67 6e |efault..|...! ign|
|000011a0| 6f 72 65 20 6f 74 68 65 | 72 20 65 76 65 6e 74 73 |ore othe|r events|
|000011b0| 0d 09 20 20 65 6e 64 20 | 73 65 6c 65 63 74 0d 09 |.. end |select..|
|000011c0| 65 6e 64 20 69 66 0d 09 | 72 65 70 65 61 74 09 09 |end if..|repeat..|
|000011d0| 09 09 09 09 09 21 20 72 | 65 70 65 61 74 20 66 6f |.....! r|epeat fo|
|000011e0| 72 20 61 6e 6f 74 68 65 | 72 20 65 76 65 6e 74 0d |r anothe|r event.|
|000011f0| 09 65 6e 64 0d 0d 2a 0d | 2a 20 6d 65 6e 75 73 3a |.end..*.|* menus:|
|00001200| 20 61 20 6d 6f 75 73 65 | 20 64 6f 77 6e 20 65 76 | a mouse| down ev|
|00001210| 65 6e 74 20 77 61 73 20 | 64 65 74 65 63 74 65 64 |ent was |detected|
|00001220| 20 69 6e 20 74 68 65 20 | 6d 65 6e 75 20 61 72 65 | in the |menu are|
|00001230| 61 0d 2a 0d 09 73 75 62 | 72 6f 75 74 69 6e 65 20 |a.*..sub|routine |
|00001240| 6d 65 6e 75 73 28 6d 6f | 75 73 65 2c 64 5f 77 69 |menus(mo|use,d_wi|
|00001250| 6e 64 6f 77 2c 68 74 65 | 29 0d 09 0d 09 69 6d 70 |ndow,hte|)....imp|
|00001260| 6c 69 63 69 74 20 6e 6f | 6e 65 0d 09 69 6e 63 6c |licit no|ne..incl|
|00001270| 75 64 65 20 64 65 73 6b | 2e 69 6e 63 0d 09 69 6e |ude desk|.inc..in|
|00001280| 63 6c 75 64 65 20 64 69 | 61 6c 6f 67 2e 69 6e 63 |clude di|alog.inc|
|00001290| 0d 09 69 6e 63 6c 75 64 | 65 20 65 76 65 6e 74 2e |..includ|e event.|
|000012a0| 69 6e 63 0d 09 69 6e 63 | 6c 75 64 65 20 6d 65 6e |inc..inc|lude men|
|000012b0| 75 2e 69 6e 63 0d 09 69 | 6e 63 6c 75 64 65 20 71 |u.inc..i|nclude q|
|000012c0| 75 69 63 6b 64 72 61 77 | 2e 69 6e 63 0d 09 69 6e |uickdraw|.inc..in|
|000012d0| 63 6c 75 64 65 20 6d 69 | 73 63 2e 69 6e 63 0d 09 |clude mi|sc.inc..|
|000012e0| 69 6e 63 6c 75 64 65 20 | 74 65 78 74 65 64 69 74 |include |textedit|
|000012f0| 2e 69 6e 63 0d 09 69 6e | 63 6c 75 64 65 20 77 69 |.inc..in|clude wi|
|00001300| 6e 64 6f 77 2e 69 6e 63 | 0d 0d 09 69 6e 74 65 67 |ndow.inc|...integ|
|00001310| 65 72 2a 34 20 74 6f 6f | 6c 62 78 0d 09 69 6e 74 |er*4 too|lbx..int|
|00001320| 65 67 65 72 2a 32 20 77 | 68 65 72 65 28 32 29 09 |eger*2 w|here(2).|
|00001330| 09 21 20 6d 6f 75 73 65 | 20 6c 6f 63 61 74 69 6f |.! mouse| locatio|
|00001340| 6e 20 66 72 6f 6d 20 74 | 68 65 20 65 76 65 6e 74 |n from t|he event|
|00001350| 20 72 65 63 6f 72 64 0d | 09 69 6e 74 65 67 65 72 | record.|.integer|
|00001360| 20 64 5f 77 69 6e 64 6f | 77 09 09 21 20 64 20 77 | d_windo|w..! d w|
|00001370| 69 6e 64 6f 77 20 70 6f | 69 6e 74 65 72 0d 09 69 |indow po|inter..i|
|00001380| 6e 74 65 67 65 72 20 77 | 69 6e 64 6f 77 09 09 09 |nteger w|indow...|
|00001390| 21 20 67 65 6e 65 72 61 | 6c 20 77 69 6e 64 6f 77 |! genera|l window|
|000013a0| 20 70 6f 69 6e 74 65 72 | 0d 09 69 6e 74 65 67 65 | pointer|..intege|
|000013b0| 72 2a 34 20 64 6c 67 09 | 09 09 21 20 64 69 61 6c |r*4 dlg.|..! dial|
|000013c0| 6f 67 20 70 6f 69 6e 74 | 65 72 0d 09 69 6e 74 65 |og point|er..inte|
|000013d0| 67 65 72 2a 32 20 64 69 | 74 65 6d 68 09 09 21 20 |ger*2 di|temh..! |
|000013e0| 69 74 65 6d 20 68 69 74 | 20 69 6e 20 64 69 61 6c |item hit| in dial|
|000013f0| 6f 67 0d 09 69 6e 74 65 | 67 65 72 2a 34 20 6d 65 |og..inte|ger*4 me|
|00001400| 6e 75 68 61 6e 64 6c 65 | 09 09 21 20 6d 65 6e 75 |nuhandle|..! menu|
|00001410| 68 61 6e 64 6c 65 20 70 | 6f 69 6e 74 65 72 0d 09 |handle p|ointer..|
|00001420| 63 68 61 72 61 63 74 65 | 72 2a 32 35 36 20 6e 61 |characte|r*256 na|
|00001430| 6d 65 0d 09 69 6e 74 65 | 67 65 72 2a 34 20 72 65 |me..inte|ger*4 re|
|00001440| 66 6e 75 6d 2c 69 74 65 | 6d 34 2c 68 74 65 0d 09 |fnum,ite|m4,hte..|
|00001450| 69 6e 74 65 67 65 72 2a | 32 20 6d 6f 75 73 65 28 |integer*|2 mouse(|
|00001460| 32 29 09 09 21 20 77 68 | 65 72 65 28 29 20 66 69 |2)..! wh|ere() fi|
|00001470| 65 6c 64 20 6f 66 20 65 | 76 65 6e 74 72 65 63 6f |eld of e|ventreco|
|00001480| 72 64 28 29 0d 2a 0d 2a | 20 20 76 61 72 69 61 62 |rd().*.*| variab|
|00001490| 6c 65 73 20 66 6f 72 20 | 6d 61 6b 69 6e 67 20 6d |les for |making m|
|000014a0| 65 6e 75 20 73 65 6c 65 | 63 74 69 6f 6e 73 0d 2a |enu sele|ctions.*|
|000014b0| 0d 09 69 6e 74 65 67 65 | 72 2a 32 20 6d 65 6e 75 |..intege|r*2 menu|
|000014c0| 73 65 6c 65 63 74 69 6f | 6e 28 32 29 09 21 20 6d |selectio|n(2).! m|
|000014d0| 65 6e 75 20 73 65 6c 65 | 63 74 69 6f 6e 20 69 6e |enu sele|ction in|
|000014e0| 66 6f 72 6d 61 74 69 6f | 6e 0d 09 69 6e 74 65 67 |formatio|n..integ|
|000014f0| 65 72 2a 34 20 6d 65 6e | 75 64 61 74 61 09 09 21 |er*4 men|udata..!|
|00001500| 20 66 6f 72 20 75 73 65 | 20 6c 65 66 74 20 6f 66 | for use| left of|
|00001510| 20 65 71 75 61 6c 73 20 | 73 69 67 6e 0d 09 65 71 | equals |sign..eq|
|00001520| 75 69 76 61 6c 65 6e 63 | 65 20 28 6d 65 6e 75 73 |uivalenc|e (menus|
|00001530| 65 6c 65 63 74 69 6f 6e | 2c 6d 65 6e 75 64 61 74 |election|,menudat|
|00001540| 61 29 0d 2a 0d 2a 20 20 | 4d 65 6e 75 20 73 65 6c |a).*.* |Menu sel|
|00001550| 65 63 74 69 6f 6e 20 63 | 6f 6e 73 74 61 6e 74 73 |ection c|onstants|
|00001560| 3a 0d 2a 0d 09 69 6e 74 | 65 67 65 72 20 41 70 70 |:.*..int|eger App|
|00001570| 6c 65 09 20 20 20 20 20 | 20 20 20 09 21 20 6d 65 |le. | .! me|
|00001580| 6e 75 0d 09 69 6e 74 65 | 67 65 72 20 41 62 6f 75 |nu..inte|ger Abou|
|00001590| 74 09 09 09 21 20 22 41 | 70 70 6c 65 22 20 6d 65 |t...! "A|pple" me|
|000015a0| 6e 75 20 73 65 6c 65 63 | 74 69 6f 6e 73 0d 09 69 |nu selec|tions..i|
|000015b0| 6e 74 65 67 65 72 20 46 | 69 6c 65 09 20 20 20 20 |nteger F|ile. |
|000015c0| 20 20 20 20 09 21 20 6d | 65 6e 75 0d 09 69 6e 74 | .! m|enu..int|
|000015d0| 65 67 65 72 20 51 75 69 | 74 09 09 09 21 20 22 46 |eger Qui|t...! "F|
|000015e0| 69 6c 65 22 20 6d 65 6e | 75 20 73 65 6c 65 63 74 |ile" men|u select|
|000015f0| 69 6f 6e 73 0d 09 69 6e | 74 65 67 65 72 20 45 64 |ions..in|teger Ed|
|00001600| 69 74 09 20 20 20 20 20 | 20 20 20 09 21 20 6d 65 |it. | .! me|
|00001610| 6e 75 0d 09 69 6e 74 65 | 67 65 72 20 55 6e 64 6f |nu..inte|ger Undo|
|00001620| 2c 43 75 74 2c 43 6f 70 | 79 2c 50 61 73 74 65 2c |,Cut,Cop|y,Paste,|
|00001630| 43 6c 65 61 72 20 21 20 | 22 45 64 69 74 22 20 6d |Clear ! |"Edit" m|
|00001640| 65 6e 75 20 73 65 6c 65 | 63 74 69 6f 6e 73 0d 09 |enu sele|ctions..|
|00001650| 69 6e 74 65 67 65 72 20 | 4f 70 74 69 6f 6e 73 09 |integer |Options.|
|00001660| 20 20 20 20 20 20 20 20 | 09 21 20 6d 65 6e 75 0d | |.! menu.|
|00001670| 09 69 6e 74 65 67 65 72 | 20 53 6d 73 67 2c 48 6d |.integer| Smsg,Hm|
|00001680| 73 67 09 09 21 20 22 4f | 70 74 69 6f 6e 73 22 20 |sg..! "O|ptions" |
|00001690| 6d 65 6e 75 20 73 65 6c | 65 63 74 69 6f 6e 73 0d |menu sel|ections.|
|000016a0| 09 70 61 72 61 6d 65 74 | 65 72 20 28 41 70 70 6c |.paramet|er (Appl|
|000016b0| 65 3d 32 39 2c 46 69 6c | 65 3d 33 30 2c 45 64 69 |e=29,Fil|e=30,Edi|
|000016c0| 74 3d 33 31 2c 4f 70 74 | 69 6f 6e 73 3d 33 32 29 |t=31,Opt|ions=32)|
|000016d0| 0d 09 70 61 72 61 6d 65 | 74 65 72 20 28 41 62 6f |..parame|ter (Abo|
|000016e0| 75 74 3d 31 29 0d 09 70 | 61 72 61 6d 65 74 65 72 |ut=1)..p|arameter|
|000016f0| 20 28 51 75 69 74 3d 31 | 29 0d 09 70 61 72 61 6d | (Quit=1|)..param|
|00001700| 65 74 65 72 20 28 55 6e | 64 6f 3d 31 2c 43 75 74 |eter (Un|do=1,Cut|
|00001710| 3d 33 2c 43 6f 70 79 3d | 34 2c 50 61 73 74 65 3d |=3,Copy=|4,Paste=|
|00001720| 35 2c 43 6c 65 61 72 3d | 36 29 0d 09 70 61 72 61 |5,Clear=|6)..para|
|00001730| 6d 65 74 65 72 20 28 53 | 6d 73 67 3d 31 2c 48 6d |meter (S|msg=1,Hm|
|00001740| 73 67 3d 32 29 0d 2a 0d | 2a 20 53 74 61 72 74 20 |sg=2).*.|* Start |
|00001750| 6f 66 20 53 75 62 72 6f | 75 74 69 6e 65 0d 2a 0d |of Subro|utine.*.|
|00001760| 09 6d 65 6e 75 64 61 74 | 61 3d 74 6f 6f 6c 62 78 |.menudat|a=toolbx|
|00001770| 28 4d 45 4e 55 53 45 4c | 45 43 54 2c 6d 6f 75 73 |(MENUSEL|ECT,mous|
|00001780| 65 29 09 09 21 20 67 65 | 74 20 73 65 6c 65 63 74 |e)..! ge|t select|
|00001790| 65 64 20 6d 65 6e 75 20 | 64 61 74 61 0d 09 69 74 |ed menu |data..it|
|000017a0| 65 6d 34 3d 6d 65 6e 75 | 73 65 6c 65 63 74 69 6f |em4=menu|selectio|
|000017b0| 6e 28 32 29 09 09 09 09 | 21 20 63 6f 6e 76 65 72 |n(2)....|! conver|
|000017c0| 74 20 74 6f 20 34 20 62 | 79 74 65 73 0d 09 73 65 |t to 4 b|ytes..se|
|000017d0| 6c 65 63 74 20 63 61 73 | 65 20 28 6d 65 6e 75 73 |lect cas|e (menus|
|000017e0| 65 6c 65 63 74 69 6f 6e | 28 31 29 29 09 09 09 21 |election|(1))...!|
|000017f0| 20 77 68 69 63 68 20 6d | 65 6e 75 3f 0d 09 20 20 | which m|enu?.. |
|00001800| 63 61 73 65 20 28 4f 70 | 74 69 6f 6e 73 29 09 09 |case (Op|tions)..|
|00001810| 09 09 21 20 22 4f 70 74 | 69 6f 6e 73 22 20 6d 65 |..! "Opt|ions" me|
|00001820| 6e 75 0d 09 20 20 20 20 | 6d 65 6e 75 68 61 6e 64 |nu.. |menuhand|
|00001830| 6c 65 3d 74 6f 6f 6c 62 | 78 28 47 45 54 4d 48 41 |le=toolb|x(GETMHA|
|00001840| 4e 44 4c 45 2c 4f 70 74 | 69 6f 6e 73 29 09 21 20 |NDLE,Opt|ions).! |
|00001850| 67 65 74 20 22 4f 70 74 | 69 6f 6e 73 22 20 68 61 |get "Opt|ions" ha|
|00001860| 6e 64 6c 65 0d 09 20 20 | 20 20 73 65 6c 65 63 74 |ndle.. | select|
|00001870| 20 63 61 73 65 20 28 6d | 65 6e 75 73 65 6c 65 63 | case (m|enuselec|
|00001880| 74 69 6f 6e 28 32 29 29 | 09 09 21 20 22 4f 70 74 |tion(2))|..! "Opt|
|00001890| 69 6f 6e 73 22 20 6d 65 | 6e 75 69 74 65 6d 20 73 |ions" me|nuitem s|
|000018a0| 65 6c 65 63 74 65 64 0d | 09 20 20 20 20 20 20 63 |elected.|. c|
|000018b0| 61 73 65 20 28 53 6d 73 | 67 29 0d 09 09 63 61 6c |ase (Sms|g)...cal|
|000018c0| 6c 20 74 6f 6f 6c 62 78 | 28 53 48 4f 57 57 49 4e |l toolbx|(SHOWWIN|
|000018d0| 44 4f 57 2c 64 5f 77 69 | 6e 64 6f 77 29 0d 09 09 |DOW,d_wi|ndow)...|
|000018e0| 63 61 6c 6c 20 74 6f 6f | 6c 62 78 28 53 45 4c 45 |call too|lbx(SELE|
|000018f0| 43 54 57 49 4e 44 4f 57 | 2c 64 5f 77 69 6e 64 6f |CTWINDOW|,d_windo|
|00001900| 77 29 0d 09 09 63 61 6c | 6c 20 74 6f 6f 6c 62 78 |w)...cal|l toolbx|
|00001910| 28 44 49 53 41 42 4c 45 | 49 54 45 4d 2c 6d 65 6e |(DISABLE|ITEM,men|
|00001920| 75 68 61 6e 64 6c 65 2c | 53 6d 73 67 29 0d 09 09 |uhandle,|Smsg)...|
|00001930| 63 61 6c 6c 20 74 6f 6f | 6c 62 78 28 45 4e 41 42 |call too|lbx(ENAB|
|00001940| 4c 45 49 54 45 4d 2c 6d | 65 6e 75 68 61 6e 64 6c |LEITEM,m|enuhandl|
|00001950| 65 2c 48 6d 73 67 29 0d | 09 20 20 20 20 20 20 63 |e,Hmsg).|. c|
|00001960| 61 73 65 20 28 48 6d 73 | 67 29 0d 09 09 63 61 6c |ase (Hms|g)...cal|
|00001970| 6c 20 74 6f 6f 6c 62 78 | 28 48 49 44 45 57 49 4e |l toolbx|(HIDEWIN|
|00001980| 44 4f 57 2c 64 5f 77 69 | 6e 64 6f 77 29 0d 09 09 |DOW,d_wi|ndow)...|
|00001990| 63 61 6c 6c 20 74 6f 6f | 6c 62 78 28 44 49 53 41 |call too|lbx(DISA|
|000019a0| 42 4c 45 49 54 45 4d 2c | 6d 65 6e 75 68 61 6e 64 |BLEITEM,|menuhand|
|000019b0| 6c 65 2c 48 6d 73 67 29 | 0d 09 09 63 61 6c 6c 20 |le,Hmsg)|...call |
|000019c0| 74 6f 6f 6c 62 78 28 45 | 4e 41 42 4c 45 49 54 45 |toolbx(E|NABLEITE|
|000019d0| 4d 2c 6d 65 6e 75 68 61 | 6e 64 6c 65 2c 53 6d 73 |M,menuha|ndle,Sms|
|000019e0| 67 29 0d 09 20 20 20 20 | 20 20 63 61 73 65 20 64 |g).. | case d|
|000019f0| 65 66 61 75 6c 74 0d 09 | 20 20 20 20 65 6e 64 20 |efault..| end |
|00001a00| 73 65 6c 65 63 74 0d 09 | 20 20 63 61 73 65 20 28 |select..| case (|
|00001a10| 46 69 6c 65 29 09 09 09 | 09 09 21 20 22 46 69 6c |File)...|..! "Fil|
|00001a20| 65 22 20 6d 65 6e 75 20 | 73 65 6c 65 63 74 65 64 |e" menu |selected|
|00001a30| 0d 09 20 20 20 20 6d 65 | 6e 75 68 61 6e 64 6c 65 |.. me|nuhandle|
|00001a40| 3d 74 6f 6f 6c 62 78 28 | 47 45 54 4d 48 41 4e 44 |=toolbx(|GETMHAND|
|00001a50| 4c 45 2c 46 69 6c 65 29 | 09 09 21 20 67 65 74 20 |LE,File)|..! get |
|00001a60| 22 46 69 6c 65 22 20 68 | 61 6e 64 6c 65 0d 09 20 |"File" h|andle.. |
|00001a70| 20 20 20 73 65 6c 65 63 | 74 20 63 61 73 65 28 6d | selec|t case(m|
|00001a80| 65 6e 75 73 65 6c 65 63 | 74 69 6f 6e 28 32 29 29 |enuselec|tion(2))|
|00001a90| 09 09 21 20 22 46 69 6c | 65 22 20 6d 65 6e 75 69 |..! "Fil|e" menui|
|00001aa0| 74 65 6d 20 73 65 6c 65 | 63 74 65 64 0d 09 20 20 |tem sele|cted.. |
|00001ab0| 20 20 20 20 63 61 73 65 | 28 51 75 69 74 29 0d 09 | case|(Quit)..|
|00001ac0| 09 73 74 6f 70 0d 09 20 | 20 20 20 20 20 63 61 73 |.stop.. | cas|
|00001ad0| 65 20 64 65 66 61 75 6c | 74 0d 09 20 20 20 20 65 |e defaul|t.. e|
|00001ae0| 6e 64 20 73 65 6c 65 63 | 74 0d 09 20 20 63 61 73 |nd selec|t.. cas|
|00001af0| 65 28 41 70 70 6c 65 29 | 09 09 09 09 09 21 20 22 |e(Apple)|.....! "|
|00001b00| 41 70 70 6c 65 22 20 6d | 65 6e 75 20 73 65 6c 65 |Apple" m|enu sele|
|00001b10| 63 74 65 64 0d 09 20 20 | 20 20 6d 65 6e 75 68 61 |cted.. | menuha|
|00001b20| 6e 64 6c 65 3d 74 6f 6f | 6c 62 78 28 47 45 54 4d |ndle=too|lbx(GETM|
|00001b30| 48 41 4e 44 4c 45 2c 41 | 70 70 6c 65 29 09 09 21 |HANDLE,A|pple)..!|
|00001b40| 20 67 65 74 20 22 41 70 | 70 6c 65 22 20 68 61 6e | get "Ap|ple" han|
|00001b50| 64 6c 65 0d 09 20 20 20 | 20 73 65 6c 65 63 74 20 |dle.. | select |
|00001b60| 63 61 73 65 28 6d 65 6e | 75 73 65 6c 65 63 74 69 |case(men|uselecti|
|00001b70| 6f 6e 28 32 29 29 20 09 | 09 21 20 22 41 70 70 6c |on(2)) .|.! "Appl|
|00001b80| 65 22 20 6d 65 6e 75 69 | 74 65 6d 20 73 65 6c 65 |e" menui|tem sele|
|00001b90| 63 74 65 64 0d 09 20 20 | 20 20 20 20 63 61 73 65 |cted.. | case|
|00001ba0| 28 41 62 6f 75 74 29 09 | 09 09 09 21 20 41 62 6f |(About).|...! Abo|
|00001bb0| 75 74 20 69 74 65 6d 20 | 73 65 6c 65 63 74 65 64 |ut item |selected|
|00001bc0| 0d 09 09 64 6c 67 3d 74 | 6f 6f 6c 62 78 28 47 45 |...dlg=t|oolbx(GE|
|00001bd0| 54 4e 45 57 44 49 41 4c | 4f 47 2c 32 30 30 2c 30 |TNEWDIAL|OG,200,0|
|00001be0| 2c 2d 31 29 0d 09 09 64 | 6f 0d 20 09 09 20 20 63 |,-1)...d|o. .. c|
|00001bf0| 61 6c 6c 20 74 6f 6f 6c | 62 78 28 4d 4f 44 41 4c |all tool|bx(MODAL|
|00001c00| 44 49 41 4c 4f 47 2c 30 | 2c 64 69 74 65 6d 68 29 |DIALOG,0|,ditemh)|
|00001c10| 0d 09 09 20 20 69 66 20 | 28 64 69 74 65 6d 68 3d |... if |(ditemh=|
|00001c20| 33 29 20 67 6f 74 6f 20 | 31 30 30 0d 09 09 72 65 |3) goto |100...re|
|00001c30| 70 65 61 74 0d 20 31 30 | 30 09 09 63 61 6c 6c 20 |peat. 10|0..call |
|00001c40| 74 6f 6f 6c 62 78 28 44 | 49 53 50 4f 53 45 44 49 |toolbx(D|ISPOSEDI|
|00001c50| 41 4c 4f 47 2c 64 6c 67 | 29 0d 09 20 20 20 20 20 |ALOG,dlg|).. |
|00001c60| 20 63 61 73 65 20 64 65 | 66 61 75 6c 74 09 09 09 | case de|fault...|
|00001c70| 09 21 20 44 65 73 6b 20 | 41 63 63 65 73 73 6f 72 |.! Desk |Accessor|
|00001c80| 79 20 73 65 6c 65 63 74 | 65 64 0d 09 09 63 61 6c |y select|ed...cal|
|00001c90| 6c 20 74 6f 6f 6c 62 78 | 28 47 45 54 49 54 45 4d |l toolbx|(GETITEM|
|00001ca0| 2c 6d 65 6e 75 68 61 6e | 64 6c 65 2c 69 74 65 6d |,menuhan|dle,item|
|00001cb0| 34 2c 6e 61 6d 65 29 0d | 09 09 72 65 66 6e 75 6d |4,name).|..refnum|
|00001cc0| 3d 74 6f 6f 6c 62 78 28 | 4f 50 45 4e 44 53 4b 41 |=toolbx(|OPENDSKA|
|00001cd0| 43 43 2c 6e 61 6d 65 29 | 0d 09 20 20 20 20 65 6e |CC,name)|.. en|
|00001ce0| 64 20 73 65 6c 65 63 74 | 0d 09 20 20 63 61 73 65 |d select|.. case|
|00001cf0| 20 28 45 64 69 74 29 0d | 09 20 20 20 20 69 66 20 | (Edit).|. if |
|00001d00| 28 2e 6e 6f 74 2e 20 74 | 6f 6f 6c 62 78 28 53 59 |(.not. t|oolbx(SY|
|00001d10| 53 54 45 4d 45 44 49 54 | 2c 69 74 65 6d 34 2d 31 |STEMEDIT|,item4-1|
|00001d20| 29 29 20 74 68 65 6e 09 | 21 20 65 64 69 74 20 6e |)) then.|! edit n|
|00001d30| 6f 74 20 69 6e 20 64 73 | 6b 20 61 63 63 0d 09 20 |ot in ds|k acc.. |
|00001d40| 20 20 20 20 20 63 61 6c | 6c 20 74 6f 6f 6c 62 78 | cal|l toolbx|
|00001d50| 28 53 45 54 50 4f 52 54 | 2c 64 5f 77 69 6e 64 6f |(SETPORT|,d_windo|
|00001d60| 77 29 0d 09 20 20 20 20 | 20 20 73 65 6c 65 63 74 |w).. | select|
|00001d70| 20 63 61 73 65 20 28 6d | 65 6e 75 73 65 6c 65 63 | case (m|enuselec|
|00001d80| 74 69 6f 6e 28 32 29 29 | 0d 09 09 63 61 73 65 20 |tion(2))|...case |
|00001d90| 28 43 75 74 29 0d 09 09 | 20 20 63 61 6c 6c 20 74 |(Cut)...| call t|
|00001da0| 6f 6f 6c 62 78 28 54 45 | 43 55 54 2c 68 74 65 29 |oolbx(TE|CUT,hte)|
|00001db0| 0d 09 09 63 61 73 65 20 | 28 43 6f 70 79 29 0d 09 |...case |(Copy)..|
|00001dc0| 09 20 20 63 61 6c 6c 20 | 74 6f 6f 6c 62 78 28 54 |. call |toolbx(T|
|00001dd0| 45 43 4f 50 59 2c 68 74 | 65 29 0d 09 09 63 61 73 |ECOPY,ht|e)...cas|
|00001de0| 65 20 28 50 61 73 74 65 | 29 0d 09 09 20 20 63 61 |e (Paste|)... ca|
|00001df0| 6c 6c 20 74 6f 6f 6c 62 | 78 28 54 45 50 41 53 54 |ll toolb|x(TEPAST|
|00001e00| 45 2c 68 74 65 29 0d 09 | 09 63 61 73 65 20 64 65 |E,hte)..|.case de|
|00001e10| 66 61 75 6c 74 09 09 09 | 09 21 20 69 67 6e 6f 72 |fault...|.! ignor|
|00001e20| 65 20 6f 74 68 65 72 20 | 65 64 69 74 20 6d 65 6e |e other |edit men|
|00001e30| 75 20 69 74 65 6d 73 2e | 0d 09 20 20 20 20 20 20 |u items.|.. |
|00001e40| 65 6e 64 20 73 65 6c 65 | 63 74 0d 09 20 20 20 20 |end sele|ct.. |
|00001e50| 65 6e 64 20 69 66 0d 09 | 20 20 63 61 73 65 20 64 |end if..| case d|
|00001e60| 65 66 61 75 6c 74 09 09 | 09 09 09 21 20 6a 75 73 |efault..|...! jus|
|00001e70| 74 20 70 6c 61 79 69 6e | 67 20 77 69 74 68 20 74 |t playin|g with t|
|00001e80| 68 65 20 6d 6f 75 73 65 | 0d 09 65 6e 64 20 73 65 |he mouse|..end se|
|00001e90| 6c 65 63 74 0d 09 63 61 | 6c 6c 20 74 6f 6f 6c 62 |lect..ca|ll toolb|
|00001ea0| 78 28 48 49 4c 49 54 45 | 4d 45 4e 55 2c 30 29 09 |x(HILITE|MENU,0).|
|00001eb0| 09 09 21 20 75 6e 68 69 | 6c 69 74 65 73 20 6d 65 |..! unhi|lites me|
|00001ec0| 6e 75 0d 09 65 6e 64 09 | 09 09 09 09 09 21 20 65 |nu..end.|.....! e|
|00001ed0| 6e 64 20 6f 66 20 6d 65 | 6e 75 73 20 73 75 62 72 |nd of me|nus subr|
|00001ee0| 6f 75 74 69 6e 65 0d 2a | 0d 2a 20 20 4d 53 47 3a |outine.*|.* MSG:|
|00001ef0| 20 63 6c 65 61 72 20 74 | 68 65 20 77 69 6e 64 6f | clear t|he windo|
|00001f00| 77 20 61 6e 64 20 70 6f | 73 74 69 6f 6e 20 74 68 |w and po|stion th|
|00001f10| 65 20 70 65 6e 20 61 74 | 20 33 2c 31 32 20 28 76 |e pen at| 3,12 (v|
|00001f20| 2c 68 29 0d 2a 20 20 61 | 6e 64 20 70 75 74 20 75 |,h).* a|nd put u|
|00001f30| 70 20 6d 65 73 73 61 67 | 65 0d 2a 0d 09 73 75 62 |p messag|e.*..sub|
|00001f40| 72 6f 75 74 69 6e 65 20 | 4d 53 47 0d 09 0d 09 69 |routine |MSG....i|
|00001f50| 6d 70 6c 69 63 69 74 20 | 6e 6f 6e 65 0d 09 69 6e |mplicit |none..in|
|00001f60| 74 65 67 65 72 2a 34 20 | 74 6f 6f 6c 62 78 0d 09 |teger*4 |toolbx..|
|00001f70| 69 6e 63 6c 75 64 65 20 | 64 65 73 6b 2e 69 6e 63 |include |desk.inc|
|00001f80| 0d 09 69 6e 63 6c 75 64 | 65 20 64 69 61 6c 6f 67 |..includ|e dialog|
|00001f90| 2e 69 6e 63 0d 09 69 6e | 63 6c 75 64 65 20 65 76 |.inc..in|clude ev|
|00001fa0| 65 6e 74 2e 69 6e 63 0d | 09 69 6e 63 6c 75 64 65 |ent.inc.|.include|
|00001fb0| 20 6d 65 6e 75 2e 69 6e | 63 0d 09 69 6e 63 6c 75 | menu.in|c..inclu|
|00001fc0| 64 65 20 71 75 69 63 6b | 64 72 61 77 2e 69 6e 63 |de quick|draw.inc|
|00001fd0| 0d 09 69 6e 63 6c 75 64 | 65 20 6d 69 73 63 2e 69 |..includ|e misc.i|
|00001fe0| 6e 63 0d 09 69 6e 63 6c | 75 64 65 20 74 65 78 74 |nc..incl|ude text|
|00001ff0| 65 64 69 74 2e 69 6e 63 | 0d 09 69 6e 63 6c 75 64 |edit.inc|..includ|
|00002000| 65 20 77 69 6e 64 6f 77 | 2e 69 6e 63 0d 09 09 0d |e window|.inc....|
|00002010| 09 63 61 6c 6c 20 74 6f | 6f 6c 62 78 28 4d 4f 56 |.call to|olbx(MOV|
|00002020| 45 54 4f 2c 33 30 2c 33 | 30 29 0d 09 63 61 6c 6c |ETO,30,3|0)..call|
|00002030| 20 74 6f 6f 6c 62 78 28 | 54 45 58 54 46 4f 4e 54 | toolbx(|TEXTFONT|
|00002040| 2c 31 29 20 09 21 20 73 | 79 73 74 65 6d 20 66 6f |,1) .! s|ystem fo|
|00002050| 6e 74 0d 09 63 61 6c 6c | 20 74 6f 6f 6c 62 78 28 |nt..call| toolbx(|
|00002060| 54 45 58 54 53 49 5a 45 | 2c 31 32 29 20 09 21 20 |TEXTSIZE|,12) .! |
|00002070| 31 32 20 70 6f 69 6e 74 | 0d 09 63 61 6c 6c 20 74 |12 point|..call t|
|00002080| 6f 6f 6c 62 78 28 54 45 | 58 54 46 41 43 45 2c 31 |oolbx(TE|XTFACE,1|
|00002090| 29 09 09 21 20 62 6f 6c | 64 0d 09 74 79 70 65 20 |)..! bol|d..type |
|000020a0| 22 50 6f 72 74 69 6e 67 | 20 74 6f 20 74 68 65 20 |"Porting| to the |
|000020b0| 4d 61 63 22 0d 09 63 61 | 6c 6c 20 74 6f 6f 6c 62 |Mac"..ca|ll toolb|
|000020c0| 78 28 4d 4f 56 45 54 4f | 2c 31 30 30 2c 31 30 30 |x(MOVETO|,100,100|
|000020d0| 29 0d 09 74 79 70 65 20 | 22 41 20 73 65 72 69 65 |)..type |"A serie|
|000020e0| 73 20 64 65 76 6f 74 65 | 64 20 74 6f 20 70 6f 72 |s devote|d to por|
|000020f0| 74 69 6e 67 22 0d 09 63 | 61 6c 6c 20 74 6f 6f 6c |ting"..c|all tool|
|00002100| 62 78 28 4d 4f 56 45 54 | 4f 2c 31 30 30 2c 31 33 |bx(MOVET|O,100,13|
|00002110| 30 29 0d 09 74 79 70 65 | 20 22 66 6f 72 74 72 61 |0)..type| "fortra|
|00002120| 6e 20 70 72 6f 67 72 61 | 6d 20 74 6f 20 74 68 65 |n progra|m to the|
|00002130| 20 4d 61 63 22 0d 09 63 | 61 6c 6c 20 74 6f 6f 6c | Mac"..c|all tool|
|00002140| 62 78 28 4d 4f 56 45 54 | 4f 2c 31 30 30 2c 31 36 |bx(MOVET|O,100,16|
|00002150| 30 29 0d 09 74 79 70 65 | 20 22 66 72 6f 6d 20 6d |0)..type| "from m|
|00002160| 61 69 6e 66 72 61 6d 65 | 20 61 6e 64 20 6d 69 6e |ainframe| and min|
|00002170| 69 63 6f 6d 70 75 74 65 | 72 73 22 0d 09 0d 09 65 |icompute|rs"....e|
|00002180| 6e 64 0d 2a 0d 2a 20 20 | 73 75 62 72 6f 75 74 69 |nd.*.* |subrouti|
|00002190| 6e 65 20 74 6f 20 75 70 | 64 61 74 65 20 77 69 6e |ne to up|date win|
|000021a0| 64 6f 77 20 61 66 74 65 | 72 20 65 76 65 6e 74 20 |dow afte|r event |
|000021b0| 70 72 6f 63 65 73 73 65 | 64 20 75 73 69 6e 67 20 |processe|d using |
|000021c0| 77 69 6e 64 6f 77 0d 2a | 0d 09 73 75 62 72 6f 75 |window.*|..subrou|
|000021d0| 74 69 6e 65 20 55 70 5f | 77 69 6e 64 6f 77 28 64 |tine Up_|window(d|
|000021e0| 5f 77 69 6e 64 6f 77 29 | 0d 09 0d 09 69 6d 70 6c |_window)|....impl|
|000021f0| 69 63 69 74 20 6e 6f 6e | 65 0d 09 69 6e 63 6c 75 |icit non|e..inclu|
|00002200| 64 65 20 64 65 73 6b 2e | 69 6e 63 0d 09 69 6e 63 |de desk.|inc..inc|
|00002210| 6c 75 64 65 20 64 69 61 | 6c 6f 67 2e 69 6e 63 0d |lude dia|log.inc.|
|00002220| 09 69 6e 63 6c 75 64 65 | 20 65 76 65 6e 74 2e 69 |.include| event.i|
|00002230| 6e 63 0d 09 69 6e 63 6c | 75 64 65 20 6d 65 6e 75 |nc..incl|ude menu|
|00002240| 2e 69 6e 63 0d 09 69 6e | 63 6c 75 64 65 20 71 75 |.inc..in|clude qu|
|00002250| 69 63 6b 64 72 61 77 2e | 69 6e 63 0d 09 69 6e 63 |ickdraw.|inc..inc|
|00002260| 6c 75 64 65 20 6d 69 73 | 63 2e 69 6e 63 0d 09 69 |lude mis|c.inc..i|
|00002270| 6e 63 6c 75 64 65 20 74 | 65 78 74 65 64 69 74 2e |nclude t|extedit.|
|00002280| 69 6e 63 0d 09 69 6e 63 | 6c 75 64 65 20 77 69 6e |inc..inc|lude win|
|00002290| 64 6f 77 2e 69 6e 63 0d | 09 69 6e 74 65 67 65 72 |dow.inc.|.integer|
|000022a0| 2a 34 20 74 6f 6f 6c 62 | 78 2c 64 5f 77 69 6e 64 |*4 toolb|x,d_wind|
|000022b0| 6f 77 0d 0d 09 63 61 6c | 6c 20 74 6f 6f 6c 62 78 |ow...cal|l toolbx|
|000022c0| 28 42 45 47 49 4e 55 50 | 44 41 54 45 2c 64 5f 77 |(BEGINUP|DATE,d_w|
|000022d0| 69 6e 64 6f 77 29 0d 09 | 63 61 6c 6c 20 74 6f 6f |indow)..|call too|
|000022e0| 6c 62 78 28 53 45 54 50 | 4f 52 54 2c 64 5f 77 69 |lbx(SETP|ORT,d_wi|
|000022f0| 6e 64 6f 77 29 0d 09 63 | 61 6c 6c 20 4d 53 47 0d |ndow)..c|all MSG.|
|00002300| 09 63 61 6c 6c 20 74 6f | 6f 6c 62 78 28 45 4e 44 |.call to|olbx(END|
|00002310| 55 50 44 41 54 45 2c 64 | 5f 77 69 6e 64 6f 77 29 |UPDATE,d|_window)|
|00002320| 0d 0d 09 65 6e 64 09 0d | 00 00 00 00 00 00 00 00 |...end..|........|
|00002330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002380| 00 00 01 00 00 00 01 16 | 00 00 00 16 00 00 00 d4 |........|........|
|00002390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023b0| 09 53 68 65 6c 6c 2e 66 | 6f 72 02 00 00 00 54 45 |.Shell.f|or....TE|
|000023c0| 58 54 45 44 49 54 01 00 | 00 00 00 c0 00 00 00 01 |XTEDIT..|........|
|000023d0| 00 00 54 45 58 54 45 44 | 49 54 01 00 00 00 00 c0 |..TEXTED|IT......|
|000023e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023f0| 00 00 98 85 41 3d 00 00 | 22 a8 00 00 01 ea 00 00 |....A=..|".......|
|00002400| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002410| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002420| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002430| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002440| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002450| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002460| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002470| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002480| 00 00 00 0a 00 09 06 4d | 6f 6e 61 63 6f 76 00 00 |.......M|onacov..|
|00002490| 00 04 00 06 00 08 00 00 | 01 00 00 00 01 16 00 00 |........|........|
|000024a0| 00 16 00 00 00 d4 00 00 | cc 1c 00 98 00 00 00 1c |........|........|
|000024b0| 00 46 00 01 45 46 4e 54 | 00 00 00 12 45 54 41 42 |.F..EFNT|....ETAB|
|000024c0| 00 00 00 1e 03 eb 00 00 | 00 00 00 00 00 01 6e e6 |........|......n.|
|000024d0| 03 ec 00 47 00 00 00 0e | 00 01 6e d2 46 4f 42 4a |...G....|..n.FOBJ|
|000024e0| ff ff ff ff 00 40 01 aa | 00 40 01 ac 00 40 01 ae |.....@..|.@...@..|
|000024f0| 00 40 01 b0 00 40 01 b2 | 00 40 01 b4 00 40 01 b6 |.@...@..|.@...@..|
|00002500| 00 40 01 b8 00 40 10 18 | 00 40 01 bc 00 40 01 be |.@...@..|.@...@..|
|00002510| 00 40 01 be 00 40 01 be | 00 40 01 be 00 40 01 be |.@...@..|.@...@..|
|00002520| 00 40 01 46 4f 42 4a ff | ff ff ff 00 40 01 aa 00 |.@.FOBJ.|....@...|
|00002530| 40 01 ac 00 40 01 ae 00 | 40 01 b0 00 40 01 b2 00 |@...@...|@...@...|
|00002540| 40 01 b4 00 40 01 b6 00 | 40 01 b8 00 40 10 18 00 |@...@...|@...@...|
|00002550| 40 01 bc 00 40 01 be 00 | 40 01 be 00 40 01 be 00 |@...@...|@...@...|
|00002560| 40 01 be 00 40 01 be 00 | 40 01 00 00 00 00 00 00 |@...@...|@.......|
|00002570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+